/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdMetadataBusinessRefDatabase;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 元数据管理-业务、要素库关联关系业务对象 isfd_metadata_business_ref_database
 *
 * @author Lion Li
 * @date 2024-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdMetadataBusinessRefDatabase.class, reverseConvertGenerate = false)
public class IsfdMetadataBusinessRefDatabaseBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 业务场景定义id，父id
     */
    @NotNull(message = "业务场景定义id，父id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long businessId;

    /**
     * 子业务场景定义id
     */
    @NotNull(message = "子业务场景定义id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long childBusinessId;

    /**
     * 要素库id
     */
    @NotNull(message = "要素库id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long databaseId;

    /**
     * 业务场景名称
     */
    @NotBlank(message = "业务场景名称", groups = {AddGroup.class, EditGroup.class})
    private String businessName;

    /**
     * 是否删除，默认是0-未删除，1-已删除
     */
    private Long isDeleted;


}
